import java.util.ArrayList;
import java.util.Arrays;

public class TestDemo {
    public static void main(String[] args) {
        ArrayList<Integer> arrayList = new ArrayList();
        arrayList.add(1);

    }
    public static void main1(String[] args) {
        MyArrayList myArrayList = new MyArrayList();
        myArrayList.add(1);
        myArrayList.add(4);
        myArrayList.add(1);
        myArrayList.add(4);
        myArrayList.add(7);
        myArrayList.display();
        System.out.println(myArrayList.useSize);
        System.out.println(myArrayList.elem.length);
        System.out.println(myArrayList.indexOf(7));
    }


}
